Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read exclude patterns from .gitignore in absence of user-provided patterns (#344) #345

Merged
merged 10 commits into from
Dec 23, 2023

Conversation

whosayn
Copy link
Contributor

@whosayn whosayn commented Dec 22, 2023

Description

Use .gitignore to exclude files if --exclude is missing from both
pyproject.toml and the command line. Vulture now requires the
pathspec library to run.

Related Issue

#344

Checklist:

  • I have updated the documentation in the README.md file or my changes don't require an update.
  • I have added an entry in CHANGELOG.md.
  • I have added or adapted tests to cover my changes.
  • I have run tox -e fix-style to format my code and checked the result with tox -e style.

patterns (jendrikseipp#344)

Use .gitignore to exclude files if --exclude is missing from both
pyproject.toml and the command line. Vulture now requires the
pathspec library to run.
Copy link
Owner

@jendrikseipp jendrikseipp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks great! After taking care of my nitpicks and fixing the CI checks, this is ready to be merged.

vulture/core.py Outdated Show resolved Hide resolved
vulture/core.py Outdated Show resolved Hide resolved
vulture/core.py Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@whosayn
Copy link
Contributor Author

whosayn commented Dec 23, 2023

@jendrikseipp a little stumped with the CI failures as I can't reproduce it locally. any ideas?

@jendrikseipp
Copy link
Owner

Thanks for making the revisions! I fixed the CI error and everything looks good now :-)

@jendrikseipp jendrikseipp merged commit aa6fcd2 into jendrikseipp:main Dec 23, 2023
15 checks passed
@whosayn whosayn deleted the issue344 branch December 23, 2023 17:26
jendrikseipp added a commit that referenced this pull request Jan 6, 2024
…ided patterns (#344) (#345)"

This reverts commit aa6fcd2.

After further thought, the --exclude flag and .gitignore file
have different responsibilities and mixing them will surprise
some users.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants